package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    //根据用户名查询用户信息
    public User findUserByUsername(String username);

    void add(User user, Integer[] roleIds);

    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    User findById(Integer id);


    void edit( User user, Integer[] roleIds);

    List<Integer> findUserIdByRoleId(Integer id);

    void editPassword(User user);

    void delete(Integer id);
}
